package edu.sctu.zcy.month201506.day20150611;

import java.io.File;

/**
 * Created by user24 on 2015/6/11.
 */
public class DeleteFile {

    public static void main(String[] args) {

        File file2 = new File("D:\\ZCY");
        boolean result;
        if(file2.exists()){
            result = file2.delete();

            if(result){
                System.out.println("成功删除！");
            }else {
                System.out.println("目录不存在");
            }
        }

    }
}
